include ../../config.mk
CUR_PATH=$(shell /bin/pwd)
VALGRINDFLAGS=--log-file=$(CUR_PATH)/log/gigitest.valgrind.log --trace-children=yes --num-callers=20 --leak-check=full

SRCS=\
gigitest.c \
ut_connpool.c \
ut_service.c \
ut_nodes.c

OBJS=$(SRCS:.c=.o)

EXE_NAME=gigitest

build: 
	$(CC) $(DBG) $(CCFLAGS) $(LCOVFLAGS) $(INCLUDES) -I../gtestso $(SRCS) -o $(EXE_NAME) -fPIC -DPIC $(LIB_PATH) -lgigi  -lpthread -lcgtest

 
clean:
	rm -rf $(EXE_NAME)
	rm -f $(OBJS)
	for pattern in *.info *.gcda *.da *.gcno;\
	do find . -name $$pattern | xargs rm -f;\
	done

install:
	mkdir -p $(PRJ_BIN_PATH)
	cp -f $(EXE_NAME) $(PRJ_BIN_PATH)
